{template('../public/header.html')}

<!--日志列表-->
<div class="pad_10" >
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="m" value="admin" />
                <input type="hidden" name="c" value="log" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
                时间段：
                <input type="text" name="time_start" id="time_start" class="date J_date_picker" size="12" value="{$search("time_start")}">
                -
                <input type="text" name="time_end" id="time_end" class="date J_date_picker" size="12" value="{$search("time_end")}">
				<!---->
                &nbsp;&nbsp;用户名 :
                <input name="keyword" type="text" class="input-text" size="25" value="{$search("keyword")}" />
				
                <input type="submit" name="search" class="btn" value="检索" /><input type="button" name="button" class="btn" value="重设" onclick="location='{:U('log/index?menuid=' & menuid)}'" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width="50">序号</th>
                <th width="120" align="left">用户名</th>
				<th width=180 align="left">登录时间</th>
                <th width=180 align="left">登录IP</th>
                <th align="left">客户端详细</th>
                <th width="80">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
			{$rs type='rs' pagesize='0' }
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$rs('id')}"></td>
                <td align="center">{:p*20-20+k}</td>
				<td align="left"><b><!--{:M('admin')().Find(rs('uid')).getField('username')}-->{$rs('username')}</b></td>
                <td align="left">{:stdTime(rs('login_time'))}</td>
                <td align="left">{$rs('login_ip')}</td>
                <td align="left">{$rs('useragent')}</td>
                <td align="center"><a href="javascript:void(0);" class="J_confirmurl" data-acttype="ajax" data-uri="{:u('log/delete?id='& rs('id'))}" data-msg="您确定要删除吗？">{:L('delete')}</a></td>
            </tr>
			{$k++}
			{/$rs}
			{@empty for='rs'} <tr style="height:30px;"> <td align="left" colspan="10">&nbsp;&nbsp; <font color=red>暂无数据！</font></td> </tr>{/@empty}
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall"/>{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('log/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">
			{@pager data='rs'}
				{$pager("total")} 条记录 {$pager("no")}/{$pager("count")} 页 {if pager("count")>1}{$pager("bar")}{/if}
			{/@pager}
		</div>
    </div>

    </div>
</div>
{template('../public/footer.html')}
</body>
</html>
